
tab1=["Ackerman","Ackerman","","Ackerman","Ackerman","Ackerman","Ackerman","Ackerman"]

tab2 = ["Mikasa","","Mikasa","Mikasa","Mikasa","Mikasa","Mikasa","Mikasa"]

tab3 = ["","10"+Key.DIVIDE+"04"+Key.DIVIDE+"1994","10"+Key.DIVIDE+"04"+Key.DIVIDE+"1994","10"+Key.DIVIDE+"04"+Key.DIVIDE+"1994","12 mars","12"+Key.DIVIDE+"13"+Key.DIVIDE+"2012","32"+Key.DIVIDE+"11"+Key.DIVIDE+"2012","32"+Key.DIVIDE+"11"+Key.DIVIDE+"12"]

def setUp(self):
    click("Vq.png")
    wait(0.5)
    doubleClick(Pattern("1383919619684.png").similar(0.62).targetOffset(-1,-15))
    wait("XLiAjoutClie.png")


def tearDown(self):
    click("1383920347731.png")
    wait(2)
    type("\n")

def testA(self):
    click(Pattern("Nom.png").similar(0.83).targetOffset(169,1))
    type("Ackerman")
    wait(0.5)
    click(Pattern("Prenom-1.png").targetOffset(139,0))
    type("Mikasa")
    wait(0.5)
    click(Pattern("DatedeNaissa-2.png").targetOffset(109,0))
    type(Key.CAPS_LOCK)
    wait(0.5)
    type("")

    assert exists("lMessageCert.png")

def testB(self):
    click(Pattern("Nom.png").similar(0.83).targetOffset(169,1))
    type("Ackerman")
    wait(0.5)
    click(Pattern("Prenom-1.png").targetOffset(139,0))
    type("Mikasa")
    wait(0.5)
    click(Pattern("DatedeNaissa-2.png").targetOffset(109,0))
    type("10"+Key.DIVIDE+"04"+Key.DIVIDE+"1994")
    wait(0.5)

    assert exists("lMessageCert.png")

